local other__feiyang = fk.CreateSkill{
  name = "other__feiyang",
}
Fk:loadTranslationTable{
["other__feiyang"]="飞扬",
[":other__feiyang"]="准备阶段，你有50%概率弃置你判定区的一张牌",
}

other__feiyang:addEffect(fk.EventPhaseStart, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(other__feiyang.name) and
      player.phase == Player.Judge and #player:getCardIds(Player.Judge) > 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x = math.random(1, 6)
    if x > 3 then 
      local jcards = player:getCardIds("j")
      if #jcards == 0 then return end
      local card = #jcards == 1 and jcards[1] or room:askForCardChosen(player, player, "j", other__feiyang.name)
      room:throwCard({card}, other__feiyang.name, player, player)
    end
  end,
})


return other__feiyang
